-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace dep with go mod #3907
replace dep with go mod #3907
Conversation
I need to disable unconvert because of |
Codecov Report
@@ Coverage Diff @@
## develop #3907 +/- ##
===========================================
- Coverage 60.26% 60.25% -0.02%
===========================================
Files 196 196
Lines 14615 14615
===========================================
- Hits 8808 8806 -2
- Misses 5214 5216 +2
Partials 593 593 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets a big 👍, tACK, LGTM and also a comment that it reduces install time by ~3x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments which I think should be discussed & clarified. Also, it might be worthwhile to streamline this as much as possible across our repositories (tendermint/iavl/amino, ...).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestedACK
This comment is more about the overall process and migration to A risk I see with the migration to
git will not help much in these cases. I would say, for the next few months, we should add a manual step to confirm that we don't make mistakes when mixing changes in old gopkg vs new go.mod files. |
@alessio I deleted my comment so I could move it over to the main thread and somehow it logs that I deleted yours, hehe :) Please repeat if I deleted something by mistake |
it seems that something changed in the meantime :| |
Checks should be back green shortly @jleni |
Speaking of caching. Is there a particular reason to not cache the dependencies. This would probably speed up builds inside of circle ci: - restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
# ...
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
|
@liamsi I agree with you, and although your example looks promising, my lack of skills in CircleCI pipelines design does not allow me to assess on the spot with enough confidence where I should drop those simple snippets. Things such as shortening build times fit into the category of (desired) optimisations, thus I'd focus on getting the main functionality of this PR over the line first. I'll ask our Experts (TM) @greg-szabo @mircea-c to take a look eventually 🙏️ |
All comments are addressed. I'm just waiting for at least one additional review to come through. |
@@ -63,6 +64,7 @@ jobs: | |||
name: binaries | |||
command: | | |||
export PATH="$GOBIN:$PATH" | |||
make go-mod-cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also not a circcleci expert but line 62 reads - *dependencies
. And the dependencies anchor is defined by:
deps: &dependencies
run:
name: dependencies
command: |
export PATH="$GOBIN:$PATH"
make go-mod-cache
Shouldn't make go-mod-cache
already have been called there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
It would be cool if this could serve as as a reference for other repo's (like tendermint etc). For this, I think we should:
We should probably merge this as is and address those in a follow-up PR though. |
@liamsi I've created an issue in our repo to make the changes to CircleCi config. https://github.com/tendermint/devops/issues/207 |
Does this build even if the project directory is outside of GOPATH? having some issues aligning packages on my end... |
@dokwon I had the same issue, you need to remove the repository from $GOPATH |
Strange. I can build the SDK both inside and outside my $GOPATH it just matters if you have your modules env set. |
yeah its |
Solved! It was a GOPATH issue. Thanks all!
…On Fri, Apr 5, 2019, 2:37 AM Jack Zampolin ***@***.***> wrote:
yeah its GO11MODULES=true or something like that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3907 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABjx-I4etWoOzt_6CSrwWe1BKvrRiN1cks5vdjhrgaJpZM4b2lui>
.
|
Closes: #3919 #3630
docs/
)sdkch add [section] [stanza] [message]
Files changed
in the github PR explorerFor Admin Use: